window.phoenix&&(window.phoenix.buildInfo||(window.phoenix.buildInfo=[]),-1===window.phoenix.buildInfo.findIndex((e=>"Phoenix-platform"===e.MFE))&&window.phoenix.buildInfo.push({MFE:"Phoenix-platform",VERSION:"4f801c6",LASTCOMMITDATETIME:"2024-07-08T07:55:19+00:00"})) /*! * * ============= BUILD INFO ============= * MFE: Phoenix-platform * chunkName: vendor-clientlibs/localforage/localforage * VERSION: 4f801c6 * BRANCH: HEAD * COMMITHASH: 4f801c6a05dec11337fda6d090793eee14303a13 * LASTCOMMITDATETIME: 2024-07-08T07:55:19+00:00 * ============= If you're reading this, why not come work with us? https://www.t-mobile.com/careers ============= */,function(){var e={839:function(e){e.exports=function(){"use strict";const e=Object.assign||function(e){for(var n,t=1;t0}function s(n){void 0===n&&(n={});var r=e({},n,{db:sessionStorage,keyPrefix:u(n,this._defaultConfig)});return f(r.db)?(this._dbInfo=r,t(this).then((function(e){r.serializer=e}))):Promise.reject()}function l(e){var n=this,t=this.ready().then((function(){for(var e=n._dbInfo,t=e.db,r=e.keyPrefix,o=t.length-1;o>=0;o--){var i=t.key(o)||"";0===i.indexOf(r)&&t.removeItem(i)}}));return o(t,e),t}function d(e,n){var t=this;e=a(e);var r=this.ready().then((function(){var n=t._dbInfo,r=n.db,o=n.keyPrefix,i=n.serializer,a=r.getItem(o+e);return a?i.deserialize(a):a}));return o(r,n),r}function v(e,n){var t=this,r=this.ready().then((function(){for(var n=t._dbInfo,r=n.db,o=n.keyPrefix,i=n.serializer,a=o.length,u=r.length,c=1,f=0;f=0;s--){var l=f.key(s)||"";0===l.indexOf(c)&&f.removeItem(l)}t=Promise.resolve()}catch(e){t=Promise.reject(e)}else t=Promise.reject("Invalid arguments");return o(t,n),t}return{_driver:"sessionStorageWrapper",_initStorage:s,_support:i(),iterate:v,getItem:d,setItem:m,removeItem:p,clear:l,length:b,key:h,keys:y,dropInstance:g}}()},483:function(e,n,t){ /*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */ e.exports=function e(n,t,r){function o(a,u){if(!t[a]){if(!n[a]){if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=t[a]={exports:{}};n[a][0].call(f.exports,(function(e){var t=n[a][1][e];return o(t||e)}),f,f.exports,e,n,t,r)}return t[a].exports}for(var i=void 0,a=0;a=43)}})).catch((function(){return!1}))}function I(e){return"boolean"==typeof y?f.resolve(y):w(e).then((function(e){return y=e}))}function S(e){var n=b[e.name],t={};t.promise=new f((function(e,n){t.resolve=e,t.reject=n})),n.deferredOperations.push(t),n.dbReady?n.dbReady=n.dbReady.then((function(){return t.promise})):n.dbReady=t.promise}function E(e){var n=b[e.name].deferredOperations.pop();if(n)return n.resolve(),n.promise}function N(e,n){var t=b[e.name].deferredOperations.pop();if(t)return t.reject(n),t.promise}function x(e,n){return new f((function(t,r){if(b[e.name]=b[e.name]||B(),e.db){if(!n)return t(e.db);S(e),e.db.close()}var o=[e.name];n&&o.push(e.version);var i=a.open.apply(a,o);n&&(i.onupgradeneeded=function(n){var t=i.result;try{t.createObjectStore(e.storeName),n.oldVersion<=1&&t.createObjectStore(h)}catch(t){if("ConstraintError"!==t.name)throw t;console.warn('The database "'+e.name+'" has been upgraded from version '+n.oldVersion+" to version "+n.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),i.onerror=function(e){e.preventDefault(),r(i.error)},i.onsuccess=function(){var n=i.result;n.onversionchange=function(e){e.target.close()},t(n),E(e)}}))}function k(e){return x(e,!1)}function j(e){return x(e,!0)}function O(e,n){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==n&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function A(e){return new f((function(n,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");n({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)}))}function R(e){return c([_(atob(e.data))],{type:e.type})}function D(e){return e&&e.__local_forage_encoded_blob}function C(e){var n=this,t=n._initReady().then((function(){var e=b[n._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(t,e,e),t}function P(e){S(e);for(var n=b[e.name],t=n.forages,r=0;r0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return f.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),j(e)})).then((function(){return P(e).then((function(){T(e,n,t,r-1)}))})).catch(t);t(o)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function M(e){var n=this,t={db:null};if(e)for(var r in e)t[r]=e[r];var o=b[t.name];o||(o=B(),b[t.name]=o),o.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=C);var i=[];function a(){return f.resolve()}for(var u=0;u>4,s[c++]=(15&r)<<4|o>>2,s[c++]=(3&o)<<6|63&i;return f}function he(e){var n,t=new Uint8Array(e),r="";for(n=0;n>2],r+=X[(3&t[n])<<4|t[n+1]>>4],r+=X[(15&t[n+1])<<2|t[n+2]>>6],r+=X[63&t[n+2]];return t.length%3==2?r=r.substring(0,r.length-1)+"=":t.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function ye(e,n){var t="";if(e&&(t=de.call(e)),e&&("[object ArrayBuffer]"===t||e.buffer&&"[object ArrayBuffer]"===de.call(e.buffer))){var r,o=$;e instanceof ArrayBuffer?(r=e,o+=ee):(r=e.buffer,"[object Int8Array]"===t?o+=te:"[object Uint8Array]"===t?o+=re:"[object Uint8ClampedArray]"===t?o+=oe:"[object Int16Array]"===t?o+=ie:"[object Uint16Array]"===t?o+=ue:"[object Int32Array]"===t?o+=ae:"[object Uint32Array]"===t?o+=ce:"[object Float32Array]"===t?o+=fe:"[object Float64Array]"===t?o+=se:n(new Error("Failed to get type for BinaryArray"))),n(o+he(r))}else if("[object Blob]"===t){var i=new FileReader;i.onload=function(){var t=J+e.type+"~"+he(this.result);n($+ne+t)},i.readAsArrayBuffer(e)}else try{n(JSON.stringify(e))}catch(t){console.error("Couldn't convert value into a JSON string: ",e),n(null,t)}}function be(e){if(e.substring(0,Z)!==$)return JSON.parse(e);var n,t=e.substring(le),r=e.substring(Z,le);if(r===ne&&Y.test(t)){var o=t.match(Y);n=o[1],t=t.substring(o[0].length)}var i=ve(t);switch(r){case ee:return i;case ne:return c([i],{type:n});case te:return new Int8Array(i);case re:return new Uint8Array(i);case oe:return new Uint8ClampedArray(i);case ie:return new Int16Array(i);case ue:return new Uint16Array(i);case ae:return new Int32Array(i);case ce:return new Uint32Array(i);case fe:return new Float32Array(i);case se:return new Float64Array(i);default:throw new Error("Unkown type: "+r)}}var pe={serialize:ye,deserialize:be,stringToBuffer:ve,bufferToString:he};function me(e,n,t,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,r)}function ge(e){var n=this,t={db:null};if(e)for(var r in e)t[r]="string"!=typeof e[r]?e[r].toString():e[r];var o=new f((function(e,r){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(e){return r(e)}t.db.transaction((function(o){me(o,t,(function(){n._dbInfo=t,e()}),(function(e,n){r(n)}))}),r)}));return t.serializer=pe,o}function _e(e,n,t,r,o,i){e.executeSql(t,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],(function(e,u){u.rows.length?i(e,a):me(e,n,(function(){e.executeSql(t,r,o,i)}),i)}),i):i(e,a)}),i)}function we(e,n){var t=this;e=d(e);var r=new f((function(n,r){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){_e(t,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,t){var r=t.rows.length?t.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),n(r)}),(function(e,n){r(n)}))}))})).catch(r)}));return s(r,n),r}function Ie(e,n){var t=this,r=new f((function(n,r){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){_e(t,o,"SELECT * FROM "+o.storeName,[],(function(t,r){for(var i=r.rows,a=i.length,u=0;u0)return void i(Se.apply(o,[e,u,t,r-1]));a(n)}}))}))})).catch(a)}));return s(i,t),i}function Ee(e,n,t){return Se.apply(this,[e,n,t,1])}function Ne(e,n){var t=this;e=d(e);var r=new f((function(n,r){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){_e(t,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){n()}),(function(e,n){r(n)}))}))})).catch(r)}));return s(r,n),r}function xe(e){var n=this,t=new f((function(e,t){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){_e(n,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,n){t(n)}))}))})).catch(t)}));return s(t,e),t}function ke(e){var n=this,t=new f((function(e,t){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){_e(n,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(n,t){var r=t.rows.item(0).c;e(r)}),(function(e,n){t(n)}))}))})).catch(t)}));return s(t,e),t}function je(e,n){var t=this,r=new f((function(n,r){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){_e(t,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,t){var r=t.rows.length?t.rows.item(0).key:null;n(r)}),(function(e,n){r(n)}))}))})).catch(r)}));return s(r,n),r}function Oe(e){var n=this,t=new f((function(e,t){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){_e(n,r,"SELECT key FROM "+r.storeName,[],(function(n,t){for(var r=[],o=0;o '__WebKitDatabaseInfoTable__'",[],(function(t,r){for(var o=[],i=0;i0}function Me(e){var n=this,t={};if(e)for(var r in e)t[r]=e[r];return t.keyPrefix=Pe(e,n._defaultConfig),Be()?(n._dbInfo=t,t.serializer=pe,f.resolve()):f.reject()}function Fe(e){var n=this,t=n.ready().then((function(){for(var e=n._dbInfo.keyPrefix,t=localStorage.length-1;t>=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return s(t,e),t}function ze(e,n){var t=this;e=d(e);var r=t.ready().then((function(){var n=t._dbInfo,r=localStorage.getItem(n.keyPrefix+e);return r&&(r=n.serializer.deserialize(r)),r}));return s(r,n),r}function Le(e,n){var t=this,r=t.ready().then((function(){for(var n=t._dbInfo,r=n.keyPrefix,o=r.length,i=localStorage.length,a=1,u=0;u=0;n--){var t=localStorage.key(n);0===t.indexOf(e)&&localStorage.removeItem(t)}})):f.reject("Invalid arguments"),s(r,n),r}var Ve={_driver:"localStorageWrapper",_initStorage:Me,_support:Ce(),iterate:Le,getItem:ze,setItem:Qe,removeItem:Ke,clear:Fe,length:We,key:Ue,keys:qe,dropInstance:He},Ge=function(e,n){return e===n||"number"==typeof e&&"number"==typeof n&&isNaN(e)&&isNaN(n)},Xe=function(e,n){for(var t=e.length,r=0;r{n(this.store.get(e))}));return this.executeCallback(t,n),t}setItem(e,n,t){const r=new Promise((t=>{this.store.set(e,n),t(n)}));return this.executeCallback(r,t),r}removeItem(e,n){const t=new Promise((n=>{this.store.delete(e),n()}));return this.executeCallback(t,n),t}clear(e){const n=new Promise((e=>{this.store.clear(),e()}));return this.executeCallback(n,e),n}length(e){const n=new Promise((e=>{e(this.store.size)}));return this.executeCallback(n,e),n}key(e,n){const t=new Promise(((n,t)=>{const r=Array.from(this.store.keys());r.length>e?n(r[e]):t(new Error("Key index out of bounds"))}));return this.executeCallback(t,n),t}keys(e){const n=new Promise((e=>{e(Array.from(this.store.keys()))}));return this.executeCallback(n,e),n}iterate(e,n){const t=new Promise((n=>{let t=0;for(const r of this.store.keys()){let o=this.store.get(r);if(o=e(o,r,t++),void 0!==o)return n(o)}n(void 0)}));return this.executeCallback(t,n),t}executeCallback(e,n){n&&e.then((e=>{n(null,e)}),(e=>{n(e,void 0)}))}}function a(e,n){return`${e.name||n.name}/${e.storeName||n.storeName}/`}var u={_driver:"memoryStorageDriver",_initStorage:function(e){this._dbInfo={...e,keyPrefix:a(e,this._defaultConfig),store:new i}},_support:!0,getItem:async function(e,n){return await this.ready(),this._dbInfo.store.getItem(e,n)},setItem:async function(e,n,t){return await this.ready(),this._dbInfo.store.setItem(e,n,t)},removeItem:async function(e,n){return await this.ready(),this._dbInfo.store.removeItem(e,n)},clear:async function(e){return this._dbInfo.store.clear(e)},length:async function(e){return await this.ready(),this._dbInfo.store.length(e)},key:async function(e,n){return await this.ready(),this._dbInfo.store.key(e,n)},keys:async function(e){return await this.ready(),this._dbInfo.store.keys(e)},iterate:async function(e,n){return await this.ready(),this._dbInfo.store.iterate(e,n)}};window.localforage=n(),window.localforage.defineDriver(u),window.localforage.defineDriver(o()),window.localforage.VOLITALEMEMORY=u._driver,window.localforage.SESSIONSTORAGE=o()._driver,window.localforage.setDriver([o()._driver,u._driver]),window.localforage.ready().then((()=>window.localforage._dbInfo.keyPrefix="")).catch((e=>{window.phoenix.log.warning("Error readying localforage.",{className:"localForage",appName:"phoenix-platform"},e)}))}()}();